{sdcms:include("sdcms_top.asp")}
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>评论信息_{infotitle}_{sdcms[webname]}</title>
{sdcms:include("sdcms_base.asp")}
<script>var webroot="{webroot}";var infoid="{infoid}";</script>
{sdcms:include("sdcms_head.asp")}
<ul class="bread">
    <button class="button win-back icon-arrow-left float-right"> 返回</button>
    <li class="text-big"><a href="{webroot}" class="icon-home"> 首页</a> > 评论</li>
</ul>

<ul class="list-media list-loop list-underline margin">
{sdcms:rs field="avatar,username,createdate,content,reply" table="sd_expand_comment" where="islock=1 [sqlwhere]" order="commentid desc" pagesize="20" isadminurl="0"}
    <li class="loop">
        <div class="media media-x">
            <img src="{webroot}upfile/avatar/{$rs[avatar]}/normal.jpg" class="radius float-left">
          <div class="media-body">
            <span class="float-right text-small text-gray">{sdcms.getdate($rs[createdate],".",1)}</span><strong>{$rs[username]}</strong>
            {$rs[content]}
            {if sdcms.strlen($rs[reply])>0}<div><b class="text-red">回复：</b>{$rs[reply]}</div>{/if}
          </div>
        </div>
    </li>
{/sdcms:rs}
</ul>
{dim total:total=sdcms.page.totalurl}
<ul class="listmore commentmore"><li class="pagemore">{if total>1}<a href="{page:next}">正在努力加载</a>{/if}</li></ul>
{if syscomment and not(commentconfig(2))}
<div class="commentpost">
    <form method="post" class="form-inline form_comment">
        <div class="form-group">
            <div class="field">
            <div class="input-group"><span class="addbtn">网友：</span><input type="text" class="input" name="t0" placeholder="我也说两句" /><input type="hidden" name="t1" value="{asp sdcms.get_cityname("网友")}" /><span class="addbtn"><button type="submit" class="button bg-gray">发表</button></span></div>
            </div>
        </div>
    </form>
</div>
{/if}